$(document).ready(function(){
	$("#menu").find("#classroom").addClass("selected dropdown");
});

// 
function goPage(page, stSign){
	$("#page").val(page);
	if(stSign != null){
		$("#stSign").val(stSign);
	}
	document.search_form.submit();
}
function clearCondition(){
	$("#page").val(1);
	$("#search-input").val('');
	$("#stSign").val('');
	goPage(1,null);
}
function check_submit(event, input){
	var page = input.value;
	if(isNaN(page)){
		$.gritter.add({
			title: '错误信息',
			text: '输入页码非数字',
			class_name: 'gritter-error gritter-center'
		});
	}
}